﻿#include "TableMgr.h"

#define TABLE_INIT(varName,typeName) \
	varName = new typeName(); \
	varName->init();

TableMgr::TableMgr()
:_fishModelTable(nullptr)
, _gameffectable(nullptr)
, _gamemusictable(nullptr)
, _netModelTable(nullptr)
{

}

TableMgr::~TableMgr()
{

}

//初始化所有表格
void TableMgr::init()
{
	/*_fishModelTable = new FishModelTable();
	_fishModelTable->init();*/
	TABLE_INIT(_fishModelTable, FishModelTable);
	TABLE_INIT(_gameffectable, GameEffectTable);
	TABLE_INIT(_gamemusictable, GameMusicTable);
	TABLE_INIT(_bulletModelTable,BulletModelTable);
	TABLE_INIT(_cannonModelTable,CannonModelTable);
	TABLE_INIT(_netModelTable, NetModelTable);
}